﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="apple-itunes-app" content="app-id=591578609">
<meta name="viewport" content="width=device-width"/>
<meta name="description" content="筑学堂网校" />
<meta name="keywords" content="筑学堂网校、建筑、考试"/>
<link href="http://www.zhuclass.com/img/icon.ico" type="image/x-icon" rel="icon"  />
<link href="http://www.zhuclass.com/img/icon.ico" type="image/x-icon" rel="shortcut icon"  />
<link rel="stylesheet" type="text/css" href="../../style/share/style.css">
<link rel="stylesheet" type="text/css" href="../../style/share/kczx.css">
<link rel="stylesheet" type="text/css" href="../../style/share/home_style.css">
<link rel="stylesheet" type="text/css" href="../../style/user.css">
<!--[if IE 7]>
<link rel="stylesheet" href="/css/font-awesome/css/font-awesome-ie7.min.css">
<![endif]-->

<script type="text/javascript" src="../../js/home.js"></script>
<title>筑学堂家园个人空间</title>
<style type="text/css">
a {
	color:#222;
}
a:hover {
	color:#888;
}
li {
	list-style-type:none;
}
</style>
</head>
<script language="javascript">

	//成员删除
	function delMember(member_id){
		$.ajax({ url: "../group_member_del/"+member_id+"/${group_id}", 
		       success: function(result){
	              $("#mainPageDiv").html(result);
	              $.ajax({ url: "../query_group_member/${group_id}", 
				       success: function(result){
			              $("#mainPageDiv").html(result);
			           }
			       });
	           }
		
	       });
		alert(result);
	}
	
	//接受成员
	function applyMember(member_id){
			$.ajax({ url: "../group_member_apply/"+member_id+"/${group_id}", 
			       success: function(result){
		              $("#mainPageDiv").html(result);
		              $.ajax({ url: "../query_group_member/${group_id}", 
					       success: function(result){
				              $("#mainPageDiv").html(result);
				           }
				       });
		           }
			
		       });
			alert(result);
			
	}
</script>

<body style="align:center; padding:0;margin:0;clear:both; background-color:FFF;">
			<div class="home_groupnotice">
				<div class="home_grnottit">群组成员 </div>
				
				<div class="home_grnottit home_grnottit01">群管理 </div> 
				<div class="home_groupnot" style="text-indent:1em;">
					<div class="home_qz_div01" style="padding-bottom:20px;margin-top:20px;width:300px;margin-left:20px;""> 
					<a href="#">
						<div class="home_hy_div0101" style="margin-top:5px;"> 
							<c:if test="${creater.user_himg == null}">
								<img src="../../images/home_images/qz01.jpg"> 
							</c:if>
							<c:if test="${creater.user_himg != null}">
								<img src="${showImgURL}${creater.user_himg}"/> 
							</c:if>
						</div>
					</a>
						<div class="home_groupact" style="width:190px;">
						
								<div style="height:25px;font-size:14px;font-weight:bold"> <a href="#">${creater.user_rnm}</a></div>
							
													
							<div style="height:20px;width: 250px;"> 加入时间：
								<c:if test="${creater.create_dt == null}">
									0000/00/00 00:00:00
								</c:if>
								<c:if test="${creater.create_dt != null}">
									${creater.create_dt}
								</c:if>
							 </div>
							<div style="height:20px;width: 250px;"> 最后访问：
								<c:if test="${creater.last_view_dt == null}">
									0000/00/00 00:00:00
								</c:if>
								<c:if test="${creater.last_view_dt != null}">
									${creater.create_dt}
								</c:if>
							</div>
						</div>
						
						</div>
				</div>
					
					
					<div class="home_grnottit home_grnottit01">群成员 </div> 
					
					<div class="home_groupnot" style="text-indent:1em;">
					<c:forEach items="${data}" var="li">
					
					<div class="home_qz_div01 home_qz_div0101"> 
						<a href="${userURL}${li.member_id}">
							<div class="home_hy_div0101" style="margin-top:5px;"> 
								<c:if test="${li.user_himg == null}">
									<img src="../../images/home_images/qz01.jpg"> 
								</c:if>
								<c:if test="${li.user_himg != null}">
									<img src="${showImgURL}${li.user_himg}"/> 
								</c:if>
							</div>
						</a>
						<div class="home_groupact" style="width:190px;">
						
								<div style="height:25px;font-size:14px;font-weight:bold"> <a href="#"> ${li.user_rnm} </a></div>
							
													
							<div style="height:20px;width: 250px;"> 加入时间：${li.create_dt} </div>
							<div style="height:20px;width: 250px;"> 最后访问：${li.last_view_dt}</div>
							
							<c:if test="${li.apply_yn == 1}">
								<div style="height:20px;"> 
								  <a href="#" style="margin-left:8px;color:#2CB8AD;" onclick="delMember(${li.member_id})" >[删除] </a>
								</div>
							</c:if>
							
						    <c:if test="${li.apply_yn != 1}">
								<div style="height:20px;"> <a href="#" style="margin-left:8px;color:#2CB8AD;" onclick="applyMember(${li.member_id})" >[同意] </a></div>
							</c:if>
						</div>
						
						</div>
					</c:forEach>
				</div>

</body>
</html>